package com.hbms.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hbms.business.mapper.HotelbmsUserhotelbookingsMapper;
import com.hbms.business.domain.HotelbmsUserhotelbookings;
import com.hbms.business.service.IHotelbmsUserhotelbookingsService;

/**
 * 用户酒店订单Service业务层处理
 * 
 * @author zl
 * @date 2024-04-10
 */
@Service
public class HotelbmsUserhotelbookingsServiceImpl implements IHotelbmsUserhotelbookingsService 
{
    @Autowired
    private HotelbmsUserhotelbookingsMapper hotelbmsUserhotelbookingsMapper;

    /**
     * 查询用户酒店订单
     * 
     * @param userHotelBookingId 用户酒店订单主键
     * @return 用户酒店订单
     */
    @Override
    public HotelbmsUserhotelbookings selectHotelbmsUserhotelbookingsByUserHotelBookingId(Long userHotelBookingId)
    {
        return hotelbmsUserhotelbookingsMapper.selectHotelbmsUserhotelbookingsByUserHotelBookingId(userHotelBookingId);
    }

    /**
     * 查询用户酒店订单列表
     * 
     * @param hotelbmsUserhotelbookings 用户酒店订单
     * @return 用户酒店订单
     */
    @Override
    public List<HotelbmsUserhotelbookings> selectHotelbmsUserhotelbookingsList(HotelbmsUserhotelbookings hotelbmsUserhotelbookings)
    {
        return hotelbmsUserhotelbookingsMapper.selectHotelbmsUserhotelbookingsList(hotelbmsUserhotelbookings);
    }

    /**
     * 新增用户酒店订单
     * 
     * @param hotelbmsUserhotelbookings 用户酒店订单
     * @return 结果
     */
    @Override
    public int insertHotelbmsUserhotelbookings(HotelbmsUserhotelbookings hotelbmsUserhotelbookings)
    {
        return hotelbmsUserhotelbookingsMapper.insertHotelbmsUserhotelbookings(hotelbmsUserhotelbookings);
    }

    /**
     * 修改用户酒店订单
     * 
     * @param hotelbmsUserhotelbookings 用户酒店订单
     * @return 结果
     */
    @Override
    public int updateHotelbmsUserhotelbookings(HotelbmsUserhotelbookings hotelbmsUserhotelbookings)
    {
        return hotelbmsUserhotelbookingsMapper.updateHotelbmsUserhotelbookings(hotelbmsUserhotelbookings);
    }

    /**
     * 批量删除用户酒店订单
     * 
     * @param userHotelBookingIds 需要删除的用户酒店订单主键
     * @return 结果
     */
    @Override
    public int deleteHotelbmsUserhotelbookingsByUserHotelBookingIds(Long[] userHotelBookingIds)
    {
        return hotelbmsUserhotelbookingsMapper.deleteHotelbmsUserhotelbookingsByUserHotelBookingIds(userHotelBookingIds);
    }

    /**
     * 删除用户酒店订单信息
     * 
     * @param userHotelBookingId 用户酒店订单主键
     * @return 结果
     */
    @Override
    public int deleteHotelbmsUserhotelbookingsByUserHotelBookingId(Long userHotelBookingId)
    {
        return hotelbmsUserhotelbookingsMapper.deleteHotelbmsUserhotelbookingsByUserHotelBookingId(userHotelBookingId);
    }
}
